package com.ylsf.blog.pojo;

import java.util.Date;

/**
 * 评论类
 */
public class Comment {
    private Integer id;
    private Integer aid;
    private String username;
    private String comment;
    private Date leaveTime;

    public Comment() {
    }

    public Comment(Integer id, Integer aid, String username, String comment, Date leaveTime) {
        this.id = id;
        this.aid = aid;
        this.username = username;
        this.comment = comment;
        this.leaveTime = leaveTime;
    }

    public Comment(Integer aid, String username, String comment, Date leaveTime) {
        this.aid = aid;
        this.username = username;
        this.comment = comment;
        this.leaveTime = leaveTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", aid=" + aid +
                ", username='" + username + '\'' +
                ", comment='" + comment + '\'' +
                ", leaveTime=" + leaveTime +
                '}';
    }
}
